package com.netease.financial.data.provider;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

/**
 * Created by wyf on 6/10/15.
 */
public class NfsDatabaseHelper extends SQLiteOpenHelper {

    private static final String DATABASE_NAME = "financial.db";
    private static final int DATABASE_VERSION = 1;
    private static final String TABLE_FINANCIAL = "financial";

    public NfsDatabaseHelper(Context context) {
        super(context, DATABASE_NAME, null, DATABASE_VERSION);
    }

    @Override
    public void onCreate(SQLiteDatabase db) {
        createFinancialTable(db);

    }

    private void createFinancialTable(SQLiteDatabase db) {

    }
    
    @Override
    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {

    }

    private void dropTable(SQLiteDatabase db, String tableName) {
        db.execSQL("DROP TABLE IF EXISTS " + tableName);
    }
}
